package com.milks.service;

import java.util.List;

import com.milks.entity.Users;


public interface IUserService {
	/**
	 * 注册新用户接口
	 * @param u
	 */
	public void add(Users u);
	
	public void delete(int id);
	
	public void update(Users u);
	
	public Users load(int id);
	
	public Users loadByUsername(String username);
	
	public List<Users> listAllUser();
	
	public List<Users> listByGroup(int gid);
	
	public Users login(String username, String password);
	/**
	 * 通过邮箱获取用户对象
	 * @param email
	 * @return Users
	 */
	public Users loadByEmail(String email);
}
